import { rule } from "@/util/validateRules";
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 5,
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  viewBtn: false,
  labelWidth:120,
  menuWidth:280,
  column: [{
    label: '订单编号',
    prop: 'a',
    span: 24,
    search:true,
    rules: [
      { required: true, message: '订单编号不能为空', trigger: 'blur' }
    ]
  }, {
    label: '订单类型',
    prop: 'b',
    span: 24,
    rules: [
      { required: true, message: '订单类型不能为空', trigger: 'blur' }
    ]
  }, {
    label: '买家ID',
    prop: 'c',
    span: 24,
    search:true,
    rules: [
      { required: true, message: '买家ID不能为空', trigger: 'blur' }
    ]
  },{
    label: '商家ID',
    prop: 'd',
    span: 24,
    search:true,
    rules: [
      { required: true, message: '商家ID不能为空', trigger: 'blur' }
    ]
  },{
    label: '消费金额',
    prop: 'e',
    span: 24,
    rules: [
      { required: true, message: '消费金额不能为空', trigger: 'blur' }
    ]
  },{
    label: '下单时间',
    prop: 'f',
    span: 24,
    search:true,
    searchslot:true,
    type: 'date',
    rules: [
      { required: true, message: '下单时间不能为空', trigger: 'blur' }
    ]
  },{
    label: '支付方式',
    prop: 'g',
    span: 24,
    rules: [
      { required: true, message: '支付方式不能为空', trigger: 'blur' }
    ]
  },{
    label: '订单状态',
    prop: 'h',
    span: 24,
    search:true,
    type:'select',
    dicData:[
      {
        label:'-请选择-',
        value:0
      },{
        label:'状态1',
        value:1
      }
    ],
    rules: [
      { required: true, message: '订单状态不能为空', trigger: 'blur' }
    ]
  },{
    label: '完成时间',
    prop: 'i',
    span: 24,
    search:true,
    searchslot:true,
    type: 'date',
    rules: [
      { required: true, message: '完成时间不能为空', trigger: 'blur' }
    ]
  },]
}
